@import 'public.css';
.el-header{
    height:100px!important;
}
.el-header h2{
    text-align: center;
    line-height: 100px;
}
.logo{
    position: absolute;
}
.el-row{
    display: flex;
    align-items: center;
    height: 12vh;

}
body{
    background: url("/statics/images/background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
}
.el-form-item__label{
    color:white;
    font-weight: bolder;
}
.el-form-item:last-child{
    display: flex;
    justify-content: center;
}
.app{
    z-index: 99999;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    pointer-events:auto;
 }
.login-container,.register-container{
    background-color: rgba(255, 255, 255, 0.5);
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    width: 300px;

}

.login-container h2 ,.register-container h2{
    text-align: center;
    font-size: 25px;
    padding: 0 0 10px 0;
}

.login-container>div>div input,.register-container>div>div input {
    width: 93%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
    border-bottom: 2px solid #d3dbe3;
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0);
    outline: none;
    z-index: 3;
    position: relative;
}
.register-container>div>div{
    position: relative;
}
.username,.password,.email,.check-password,.nickname{
    width: auto;
    height: auto;
    position: relative;
    margin: 20px 0;
}
.username>span,.password>span,.email>span,.check-password>span,.nickname>span{
    /*width: 95%;*/
    height: 2px;
    background-color: #9cc5ec;
    position: absolute;
    left: 50%;
    bottom: 9px;
    transform: translateX(-50%);
    transition: 0.3s;
    width: 0;
    z-index: 3;
}
.login-container>div>div label,.register-container>div>div label{
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    transition: 0.3s;
    color: #555;
    z-index: 2;
}
.login-container input:focus ~ .bar,.register-container input:focus ~ .bar{
    width: 98%;
    height: 4px;
    margin-top: 3px;
}
.login-container>div>div input:focus ~ label,.login-container>div>div input:valid ~ label,
.register-container>div>div input:focus ~ label,.register-container>div>div input:valid ~ label{
    color: #000;
    transform: translateY(-40px);
    font-size: 20px;
    font-weight: bold;
    left: 3px;
}
.login-container>div>div p,.register-container>div>div p{
    position: absolute;
    left: 8px;
    bottom: -8px;
    color: red;
    display: none;
}
.login-container>div>div input.default ~ p,.register-container>div>div input.default ~ p{
    display: none;
}
.login-container>div>div input.invalid ~ p,.register-container>div>div input.invalid ~ p{
    display: block;
}
.login-container>div>div input.valid ~ p,.register-container>div>div input.valid ~ p{
    display: none;
}
/*.login-container>div>div:first-child input:invalid:not(:focus) ~ p{*/
/*    display: block;*/
/*}*/
.login-container button,.register-container button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    margin-top: 10px;
}

.login-container button:hover ,.register-container button:hover{
    background-color: #0056b3;
}

.role_choose {
    width: 93%;
    padding: 10px;
    margin: 10px 0;
    display: flex;
    justify-content: space-around;
    position: relative;
}

.role_choose input[type="radio"] {
    position: absolute;
    opacity: 0; /* 隐藏实际的单选按钮 */
    cursor: pointer;
    z-index: -1; /* 将单选按钮置于标签之下 */
}

.role_choose label {
    display: inline-block;
    position: relative;
    padding: 0 15px;
    line-height: 30px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-radius: 8px;
    transition: 0.3s;
}

.role_choose label:hover {
    background-color: #007bff;
    color: #fff;
}

.role_choose input[type="radio"]:checked + label {
    background-color: #007bff;
    color: #fff;
}
.role_choose div {
    flex: 1;
    flex-direction: column;
    text-align: center;
}
input:-webkit-autofill {
    transition: background-color 5000s ease-in-out 0s;
}
input {
    -webkit-text-fill-color: #000;
}
.cavs{
    position: fixed;
    width:95%;
    margin-left: 20px;
    margin-right: 20px;
}
/* 默认的透明度 */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
}

.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
    opacity: 0;
}
